package com.example.everying.service.official;/*
 * 项目名称: everything
 * 文件名: OfficialNotifiactionService
 * 作者: 张泽阳
 * 日期: 2025/6/19
 * 描述:
 */

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.dto.official.OfficialNotificationDto;
import com.example.everying.model.dto.system.SysNotificationDto;
import com.example.everying.model.entity.official.OfficialNotification;
import com.example.everying.model.entity.system.SysNotification;
import com.example.everying.utils.Result;

import java.util.List;

public interface OfficialNotificationService extends IService<OfficialNotification> {
    List<SysNotification> listByTypeAndStatus(Byte type, Byte status);

    boolean saveNotification(OfficialNotification notification);

    boolean updateNotificationById(OfficialNotification notification);

    boolean deleteNotificationById(Long id);

    IPage<OfficialNotification> selectPage(Page<OfficialNotification> pageParam, OfficialNotificationDto dto);

    Result<?> cancelOfficialNotice(Long id);
}
